#include "app_msg.h"
#include "log/log.h"
int main()
{
   log_info("jsonToMsg:");
    char *json = "{\"action\":\"set\",\"connetType\":\"MQTT\",\"motorId\":1,\"motorSpeed\":-100,\"status\":\"ok\"}";
    msg_t message;
    app_msg_jsonToMsg(json, &message);
    log_info("%s,%s,%d,%d,%s", message.action, message.connetType, message.motorId, message.motorSpeed, message.status);

    log_info("msgToJson:");
    char json2[1024];
    app_msg_msgToJson(&message, json2);
    log_info("%s", json2);
    
}